﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSConsoleTest
{
    class TestOutParam : BaseConsoleTest
    {
        public void printDescription()
        {
            Console.WriteLine("--- Output parameters ---");
        }

        public void doTest()
        {
            int result;
            plus(3, 5, out result);
            Console.WriteLine("{0} + {1} = {2}", 3, 5, result);
        }

        private void plus(int aArg1, int aArg2, out int aResult)
        {
            aResult = aArg1 + aArg2;
        }
    }
}
